package com.hmall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.dto.SearchParams;
import com.hmall.common.dto.SearchVo;
import com.hmall.item.pojo.Item;

public interface IItemService extends IService<Item> {
    PageDTO<Item> getPage(Integer page, Integer size);

    void insert(Item item);

    void updateStatus(Long id, Integer status);

    SearchVo fliters(SearchParams searchParams);

    PageDTO getList(SearchParams searchParams);

    void decreamStock(Long itemId, Integer num);

    void recoverStock(Long itemId, Integer num);
}
